<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <g:set var="entityName" value="${message(code: 'convenio.label', default: 'Convenio')}" />
    <title>Convênio Válidos</title>
  </head>
  <body>
    <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    </div>
    <div class="body">
      <h1><g:message code="convenio.validos.label" /></h1>
      <g:if test="${flash.message}">
          <div class="message">${flash.message}</div>
      </g:if>
      <div class="list">
        <table>
          <thead>
              <tr>
                <g:sortableColumn property="razaoSocial" title="${message(code: 'convenio.label', default: 'Convênio')}" />
                        
                <g:sortableColumn property="beneficio" title="${message(code: 'convenio.beneficio.label', default: 'Beneficio')}" />
                        
            </tr>
          </thead>
          <tbody>
            <g:each in="${convenioInstanceList}" status="i" var="convenioInstance">
                <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                    <td><g:link action="show" id="${convenioInstance.id}">${fieldValue(bean: convenioInstance, field: "razaoSocial")}</g:link>
                        
                    <br/>${fieldValue(bean: convenioInstance, field: "cnpj")}
                        
                    <br/>${fieldValue(bean: convenioInstance, field: "telefone")}</td>
                    
                    <td>${fieldValue(bean: convenioInstance, field: "beneficio")}</td>
                        
                </tr>
            </g:each>
          </tbody>
        </table>
    </div>
    <div class="paginateButtons">
        <g:paginate total="${convenioInstanceTotal}" />
    </div>
  </div>
  </body>
</html>
